<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=9" />
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type="text/javascript"></script>
	<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js" type="text/javascript"></script>
	<link rel="stylesheet" href="../admin/main.css" type="text/css" />
	<link rel="stylesheet" href="../admin/jquery-ui-1.9.1.custom.css" type="text/css" />

	<script language="JavaScript" type="text/javascript">
	/*<![CDATA[*/
	$(document).ready(function(){
		$("#but-forgot").click(function(){
			$("#form_login").hide();
			$("#form_forgot").show();
			return false;
		});
	});
	/*]]>*/
	</script>
  </head>
  <body>
	  <?php
		if(isset($_REQUEST['login_msg'])){
			require SCRIPTBASE.'inc/login-codes.php';
			$login_msg = $_REQUEST['login_msg'];
			if(isset($login_msg_codes[$login_msg])){
				echo "<script>
					$(function(){
						$(\"#message\").append('".htmlspecialchars($login_msg_codes[$login_msg])."');
						$(\"#login_error\").show();
					});
					</script>";
			}
		}
	  ?>
	  
		<div id="login_form">
		<div class="title">
        	<div id="textContainer">
				<span id="textCMS"><img src="images/cms_text.gif" width="44" height="15" alt="" /></span><span id="textVersion">Version</span><br />
				<span id="textSite">Testsite</span>
			</div>
		</div>

		<form id="form_login" action="../inc/login.php?redirect=<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
			<table id="login">
				<tr><td>E-mail&nbsp;</td><td><input type="text" name="email" value="" tabindex="1" size="25" class="login-email"/></td></tr>
				<tr><td>Wachtwoord&nbsp;</td><td><input type="password" name="password" value="" tabindex="2" size="25" class="login-ww"/></td></tr>
				<tr><td>&nbsp;</td><td><input type="submit" name="action" value="Inloggen" tabindex="3" class="button" />&nbsp;&nbsp;&nbsp;<input type="checkbox" checked="checked" name="setcookie" value="yes" />&nbsp;Onthoud</td></tr>
				<tr><td></td><td><a href="" class="small" id="but-forgot">Wachtwoord vergeten?</a></td></tr>
			</table>
		</form>
		<div id="login_error" class="ui-state-error ui-corner-all">
			<p id="message" class="ui-state-error-text" style="margin: 10px;"><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span></p>
		</div>
		<form id="form_forgot" action="../inc/forgotten-password.php?redirect=<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
			<table id="forgot-password">
				<tr><td>E-mail&nbsp;</td><td><input type="text" name="email" value="" tabindex="1" size="29"/></td></tr>
				<tr><td></td><td><input type="submit" name="action" value="Verstuur wachtwoord" tabindex="3" class="button" /></td></tr>
			</table>
		</form>
		</div>


  </body>
</html>
